namespace ChuTiJingTai.Models
{
    /// <summary>
    /// 日志条目模型
    /// </summary>
    public class LogEntry
    {
        /// <summary>
        /// 日志ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 时间戳
        /// </summary>
        public DateTime Timestamp { get; set; } = DateTime.Now;

        /// <summary>
        /// 日志级别
        /// </summary>
        public string Level { get; set; } = LogLevel.Info;

        /// <summary>
        /// 日志消息
        /// </summary>
        public string Message { get; set; } = string.Empty;

        /// <summary>
        /// 模块名称
        /// </summary>
        public string Module { get; set; } = string.Empty;

        /// <summary>
        /// 详细信息（可选）
        /// </summary>
        public string? Details { get; set; }
    }

    /// <summary>
    /// 日志级别
    /// </summary>
    public static class LogLevel
    {
        public const string Info = "Info";
        public const string Warning = "Warning";
        public const string Error = "Error";
        public const string Debug = "Debug";

        public static List<string> GetAll() => new() { Info, Warning, Error, Debug };
    }
} 